﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>青岛微恒工程有限公司</title>
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <!--百度地图手机-->
    <!-- Bootstrap -->
	<meta name="keywords" content="青岛微恒工程有限公司,青岛微恒,微恒">
	<meta name="description" content="青岛微恒工程有限公司"> 
    <meta name="robots" content="all"> 
    <meta name="AUTHOR" content="weiheng"> 
    <link href="css/bootstrap.min.css" rel="stylesheet">
    
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
    <link href="css/MyStely.css" rel="stylesheet" />
    <script src="http://api.map.baidu.com/api?v=2.0&ak=4sksiv4a1jdqR5Cbrnj0NVgG2kmbZSWK" type="text/javascript"></script>
    <style type="text/css">
        html {
            height: 100%;
        }

        body {
            height: 100%;
            margin: 0px;
            padding: 0px;
        }

        #map {
            height: 100%;
        }
    </style>
    
</head>
<body>
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">你的信息发送中</h4>
                </div>
                <div class="modal-body">
                    <img src="images/ajax-loader.gif" alt="" class="img-responsive center-block" />
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" data-dismiss="modal">关闭</button>
                    <!--<button type="button" class="btn btn-primary">Save changes</button>-->
                </div>
            </div>
        </div>
    </div>
    <!-- Modal success -->
    <div class="modal fade" id="myModal_Success" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">你的信息已成功发出，微恒工作人员会联系你！</h4>
                </div>
                <div class="modal-body">
                    <p>
                        你的信息已成功发出，微恒工作人员会联系你！
                    </p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" data-dismiss="modal">关闭</button>
                    <!--<button type="button" class="btn btn-primary">Save changes</button>-->
                </div>
            </div>
        </div>
    </div>
    <!--navbar-->

    <script src="js/Nav_Co.js" type="text/javascript"></script>
    <!--navbar-->
    <section id="first">
        <div class="container">
            <ol class="breadcrumb">
                <li><a href="index.html">主页</a></li>

                <li class="active">联系我们</li>

            </ol>
        </div>
    </section>
    
    <!--home1-->
    <section id="scond">

        <div class="container">
            <div class="row">
                <div class="col-md-8">
                    <div style="width:700px;height:550px;border:#ccc solid 1px;font-size:9px" id="map"></div>
                    
                </div>
                <div class="col-md-4" id="contact_">
                    
                    <address>
                        <strong>青岛微恒工程有限公司</strong><br>

                        <abbr title="Phone"><i class="iconfont text-info">&#xe618;</i></abbr>0532-83553007<br />
                        <i class="iconfont text-danger">&#xe61a;</i>
                        <a href="mailto:#">microstat@163.com</a>
                        <br />
                        <i class="iconfont text-success">&#xe619;</i> 青岛即墨市通济街道办事处金沙江一路11号
                    </address>
                    <form id="SendMail" action="ashx/Mail.ashx" method="post">
                        <div class="col-md-6">
                            <input type="text" class="form-control" name="UserName" placeholder="你的姓名" />
                        </div>
                        <div class="col-md-6">
                            <input type="number" class="form-control" name="Phone" placeholder="你的电话" />
                        </div>
                        <div class="col-md-12">
                            <input type="text" class="form-control" name="Tit" placeholder="标题" />
                        </div>
                        <div class="col-md-12">
                            <textarea class="form-control" name="YourContent" placeholder="留言内容" rows="4"></textarea>
                        </div>
                        <div class="col-md-8">
                            <input type="submit" class="form-control btn-success" />
                        </div>
                    </form>
                </div>
                
            </div>
        </div>
       

       

    </section>

    <!--home1-->
  
    <!--footer-->
    <footer id="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <p>Copyright©&nbsp;&nbsp;All Rights Reserved&nbsp;&nbsp;<br />青岛微恒：http://www.microstat-eng.com/</p>
                    <p> </p>
                    <p> &nbsp;&nbsp; 鲁ICP备16030667号-1</p>
                </div>
            </div>
        </div>
    </footer>
    <!--footer-->
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins)版本：1.11.3 -->
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.js"></script>
    <!--<script src="js/jquery.min.js"></script>-->
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  
    
    
    <script type="text/javascript">
        //创建和初始化地图函数：
        function initMap() {
            createMap();//创建地图
            setMapEvent();//设置地图事件
            addMapControl();//向地图添加控件
            addMapOverlay();//向地图添加覆盖物
        }
        function createMap() {
            map = new BMap.Map("map");
            map.centerAndZoom(new BMap.Point(120.374313, 36.340358), 19);
        }
        function setMapEvent() {
            map.enableScrollWheelZoom();
            map.enableKeyboard();
            map.enableDragging();
            map.enableDoubleClickZoom()
        }
        function addClickHandler(target, window) {
            target.addEventListener("click", function () {
                target.openInfoWindow(window);
            });
        }
        function addMapOverlay() {
           
            var markers = [
              { content: "<b>青岛微恒工程有限公司</b><br>青岛即墨市通济街道办事处金沙江一路11号", title: " ", imageOffset: { width: 0, height: 0 }, position: { lat: 36.340271, lng: 120.374775 } }
            ];
            for (var index = 0; index < markers.length; index++) {
                var point = new BMap.Point(markers[index].position.lng, markers[index].position.lat);
                var marker = new BMap.Marker(point, {
                    icon: new BMap.Icon("images/logo/logo_baidu.png", new BMap.Size(100, 20), {
                        imageOffset: new BMap.Size(markers[index].imageOffset.width, markers[index].imageOffset.height)
                    })
                });
              

                var label = new BMap.Label(markers[index].title, { offset: new BMap.Size(25, 5) });
                var opts = {
                    width: 200,
                    title: markers[index].title,
                    enableMessage: false
                };
                var infoWindow = new BMap.InfoWindow(markers[index].content, opts);
                marker.setLabel(label);
                addClickHandler(marker, infoWindow);
                map.addOverlay(marker);
            };
        }
        //向地图添加控件
        function addMapControl() {
            var scaleControl = new BMap.ScaleControl({ anchor: BMAP_ANCHOR_BOTTOM_LEFT });
            scaleControl.setUnit(BMAP_UNIT_IMPERIAL);
            map.addControl(scaleControl);
            var navControl = new BMap.NavigationControl({ anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE });
            map.addControl(navControl);
            var overviewControl = new BMap.OverviewMapControl({ anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: true });
            map.addControl(overviewControl);
        }
        var map;
        initMap();
    </script>

    <script type="text/javascript">

        //将form转为AJAX提交
        function ajaxSubmit(frm, fn) {
            var dataPara = getFormJson(frm);
            $.ajax({
                url: frm.action,
                type: frm.method,
                data: dataPara,
                beforeSend: function (XMLHttpRequest) {
                    $("#myModal").modal();
                },
                success: function () {
                    $('#myModal').modal('hide');
                    $('#myModal_Success').modal();
                }
            });
        }

        //将form中的值转换为键值对。
        function getFormJson(frm) {
            var o = {};
            var a = $(frm).serializeArray();
            $.each(a, function () {
                if (o[this.name] !== undefined) {
                    if (!o[this.name].push) {
                        o[this.name] = [o[this.name]];
                    }
                    o[this.name].push(this.value || '');
                } else {
                    o[this.name] = this.value || '';
                }
            });

            return o;
        }

        $(function () {
            ///*导航跳转效果插件*/
            //$('.nav').singlePageNav({
            //    offset: 70
            //});
            /*小屏幕导航点击关闭菜单*/
            $('.navbar-collapse a').click(function () {

                if (!($(this).hasClass("dropdown-toggle"))) { $('.navbar-collapse').collapse('hide'); }

            });


        })
    </script>

</body>
</html>
